package aooO.crm.Service.impl;


import aooO.crm.Service.ActivityRemarkService;
import aooO.crm.mapper.ActivityRemarkMapper;
import aooO.crm.pojo.ActivityRemark;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ActivityRemarkServiceImpl implements ActivityRemarkService {
    @Autowired
    ActivityRemarkMapper activityRemarkMapper;

    @Override
    public List<ActivityRemark> selectByActivityId(String activity_id) {
        return activityRemarkMapper.selectByActivityId(activity_id);
    }

    @Override
    public int insertActivityRemark(ActivityRemark activityRemark) {
        return activityRemarkMapper.insertActivityRemark(activityRemark);
    }

    @Override
    public int deleteActivityRemarkById(String id) {
        return activityRemarkMapper.deleteActivityRemarkById(id);
    }

    @Override
    public int updateActivityRemark(ActivityRemark activityRemark) {
        return activityRemarkMapper.updateActivityRemark(activityRemark);
    }

    @Override
    public int deleteRemarkByActivityId(String[] activity_id) {
        return activityRemarkMapper.deleteRemarkByActivityId(activity_id);
    }
}